#ifndef _CLIGHT_H_
#define _CLIGHT_H_

#include "GameComponentTemplate.h"
#include "Ogre.h"

using namespace Ogre;

class GameComponent;

class CLightTemplate : public GameComponentTemplate {
public:
	//static Ogre::String meshFileName;
	Ogre::Light *mLight;
	
	CLightTemplate();
	//CLightTemplate(Ogre::String meshName);
	~CLightTemplate();

	virtual const comp_id_type& componentID() const {
		return mComponentID;
	}
	virtual const comp_id_type& familyID() const {
		return mFamilyID;
	}

	virtual GameComponent *makeComponent();

private:
	static comp_id_type mComponentID;
	static comp_id_type mFamilyID;
};

class CLight : public GameComponent {
public:
	//static Ogre::String meshFileName;
	Ogre::Light *mLight;

	CLight();
	CLight(unsigned int lightType);
	CLight(CLightTemplate* ct);
	
	~CLight();

	void update();
	void setup();

	virtual const comp_id_type& familyID() const { return mFamilyID; }
	virtual const comp_id_type& componentID() const { return mComponentID; }
private:
	static comp_id_type mFamilyID;
	static comp_id_type mComponentID;
};

#endif
